import 'package:flutter/material.dart';
class BackgroundSing extends StatelessWidget {
  final Widget child;
  const BackgroundSing({
    Key? key, 
    required this.child,
  }) : super(key: key);

 

  @override
  Widget build(BuildContext context) {
    Size size = MediaQuery.of(context).size;
    return Container(
      width: double.infinity,
      height: size.height,
      child: Stack(
        alignment: Alignment.center,
        children: [
          Positioned(
            top:0,
            left:0,
            child: Image.asset(
            "assets/main_top.png",
            width: size.width *0.35,
          )),
          Positioned(
            bottom:0,
            right:0,
            child: Image.asset(
            "assets/login_bottom.png",
            width: size.width *0.4,
          )),
          child,
        ],
      ),
    );
  }
}